/*++

Copyright (c) 2007  Microsoft Corporation 

Filename: 

    ConvertImage.cs

Abstract: 

    Interface for converting image
     
--*/

#region References
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using UtilityManager;
#endregion References

namespace VisioManager
{
    /// <summary>
    /// Class to convert the Image to Interface IPictureDisp
    /// </summary>
    sealed public class ConvertImage : System.Windows.Forms.AxHost
    {
        private ConvertImage()
            : base(null)
        {
        }
        public static stdole.IPictureDisp Convert
            (System.Drawing.Image image)
        {
            // return the converted image
            return (stdole.IPictureDisp)System.
                Windows.Forms.AxHost
                .GetIPictureDispFromPicture(image);
        }

    }

}
